﻿@{
    Layout = "~/Views/Shared/_LayoutList.cshtml"; 
}
@(       
 Html.nbGridFor<Material>(s =>
 {
     s.Title("选择原材料");
     s.Action(@Url.Action("SingleLookUpRawMaterial"));
     s.layoutH(111);
     s.ShowCheckBox(false);
     s.Columns(c =>
     {
         c.Bind(m => m.Id, "选择", 20).Sortable(false)
            .Template(@<a href="javascript:GridSelectedRow('${Id}','Single')" class="imgbtn2"><span
                class="check"></span></a>);
         c.Bind(m => m.Id).IsKey();
         c.Bind(e => e.NeedProcess).Hide();
         c.BindEnum(m => m.Category, "MaterialCategory");
         c.BindEnum(m => m.Type, "MaterialType");
         c.Bind(m => m.Code).Width(60).AsQuery();
         c.Bind(m => m.Name).Width(60).AsQuery().Align(GridAlign.Left);
         c.Bind(m => m.CurrentPrice).Width(60).Align(GridAlign.Right);
         c.BindEnum(m => m.Specification, "MaterialSpec");
         c.BindEnum(m => m.Unit, "MaterialUnit");
         c.Bind(m => m.SafeStorage).Width(50).Align(GridAlign.Right);
         c.BindEnum(m => m.RawMaterialId, "Material");
         c.Bind(m => m.ProcessRate).Width(40).Align(GridAlign.Right);
     });
     s.Buttons(b =>
     {
         b.BindCancelButton();
     });
 }))
